class A:
    pass


class B:
    pass


class C(A, B):
    def __init__(self, name):
        self.name = name


x = C('YHSimon')
print(x.__dict__)  # 查看实例对象的属性字典
print(C.__dict__)
print('----------------')
print(x.__class__)  # 输出对象所属的类
print(C.__base__)  # 输出C的基类
print(C.__bases__)  # 输出C类的父类类型的元素
print(C.__mro__)  # 输出C类的层次结构
print(A.__subclasses__())  # A的子类的列表
